<template>
    <staff-detail :file="file"></staff-detail>
</template>

<script>
import axios from 'axios'
import StaffDetail from '@/components/staffDetail/staffDetail'

export default {
    components: {StaffDetail},
    data() {
        return {
            file: null
        }
    },
    mounted() {
        this.getPreview()
    },
    methods: {
        getPreview() {
            axios({
                method: 'get',
                responseType: 'blob',
                url: 'http://ashuai.work:10000/getDoc'
            }).then(({data}) => {
                this.file = data
            })
        }
    }
}
</script>
